import 'package:flutter/services.dart';
import 'package:flutter_elf/config/component_index.dart';
import 'package:flutter_elf/widgets/appbar_creator.dart';

class HttpParserPage extends BaseWidget{
  @override
  BaseWidgetState<BaseWidget> getState() {
    // TODO: implement getState
    return HttpParserPageState();
  }
}

class HttpParserPageState extends BaseWidgetState<HttpParserPage>{


  @override
  void onCreate() {
    // TODO: implement onCreate
    super.onCreate();
  }

  @override
  Widget buildView(BuildContext context) {
    // TODO: implement buildView
    return GestureDetector(
      onTap: (){
        showToast('切屏');
        SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top,SystemUiOverlay.bottom]); //隐藏
//        SystemChrome.setApplicationSwitcherDescription(ApplicationSwitcherDescription(label: '哈哈哈哈哈哈哈',primaryColor: 0xffff00ff));
      },
      child: Center(
        child: Text('点击测试'),
      ),
    );
  }

  @override
  PreferredSizeWidget initAppbar() {
    // TODO: implement initAppbar
    return AppBarCreator.create(context, '解析Html');
  }
}